package com.ibm.db2oncampus.portal.util;

import java.util.Collection;

/**
 * 
 * @author Wellington
 *
 */
public class Validadores {

	public static Boolean isStringEmpty(String value) {
		if (value == null || "".equals(value)) {
			return Boolean.TRUE;
		} else {
			return Boolean.FALSE;
		}
	}
	
	public static Boolean isCollectionEmpty(Collection collection) {
		if (collection == null || collection.isEmpty()) {
			return Boolean.TRUE;
		} else {
			return Boolean.FALSE;
		}
	}
}